<div class="stories container">
	
	<h1 class="nav-tabs"><?php echo __d('admin', 'Stories'); ?></h1>
	<h2>
		<?php echo $this->Html->link(__d('admin', 'Create'), array('action' => 'create'), array('class' => 'btn btn-primary')); ?>
	</h2>
	
	<?php if( $stories ): ?>
		<?php foreach($stories as $story): ?>
	<div class="story">
		<div class="story-title">
			<h3><?php echo $this->Html->link($story['Story']['title'], array('action' => 'edit', $story['Story']['id'])); ?></h3>
		</div>
		<div class="story-body">
			<?php echo $story['Story']['excerpt']; ?>
		</div>
		<div class="story-author">
			By <?php echo $this->Html->link($story['Author']['name'], array('controller' => 'AdminAuthors', 'action' => 'view', $story['Author']['id'])); ?>
		</div>
		<div class="story-tags">
			<small><?php echo $story['Story']['tags']; ?></small>
		</div>
	</div>
		<?php endforeach; ?>
	<?php else: ?>
	<div class="alert alert-info"><?php echo __d('admin', 'Nothing to show here!'); ?></div>
	<?php endif; ?>
	
</div>